//
//  ActivityDetaViewController.m
//  豆瓣YHY
//
//  Created by dllo on 15/10/28.
//  Copyright © 2015年 蓝鸥科技. All rights reserved.
//

#import "ActivityDetaViewController.h"
#import "ActivityDetailView.h"
#import "Activitylist.h"
#import "AppTools.h"
@interface ActivityDetaViewController ()

@end

@implementation ActivityDetaViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor redColor];
    
    //滚动
//    UIScrollView *activityDataSV = [[UIScrollView alloc]initWithFrame:[UIScreen mainScreen].bounds];
//    activityDataSV.contentSize = CGSizeMake(375, 1000);
    
   // [self.view addSubview:activityDataSV];
    //view的
    ActivityDetailView *activityDetailView = [[ActivityDetailView alloc]init];
    
    [self.view addSubview:activityDetailView];
    
    
//    
//    [AppTools getLocalDataWithURL:@"http://project.lanou3g.com/teacher/yihuiyun/lanouproject/activitylist.php" andBlock:^(NSMutableDictionary *dic) {
//        
//        NSMutableDictionary *dica = dic;//大字典
//        NSMutableArray *array = [dica objectForKey:@"events"];//array
//        //dicb小字典字典在array里
//        for (NSMutableDictionary *dicb in array) {
//            Activitylist *alist = [[Activitylist alloc]init];
//            [alist setValuesForKeysWithDictionary:dic];//把小字典的内容付给空属性
//            
//            
//           
//        }
//    }];
    
    
    activityDetailView.peopleLabel2.text = self.actilist.name;
    activityDetailView.timeLable2.text = self.actilist.begin_time;
    activityDetailView.titleLabl2.text = self.actilist.title;
  activityDetailView.category_name.text = self.actilist.category_name;
   // NSLog(@"%@",self.actilist);
   // activityDetailView.contentLabel2.text = self.actilist.content.text;
   // NSLog(@"%@",self.actilist.content.text);
    activityDetailView.peopleLabel2.text = [self.actilist.owner objectForKey:@"name"];
    
    activityDetailView.address.text = self.actilist.address;
    activityDetailView.contentLabel2.text = self.actilist.content;
    activityDetailView.headImageView2.image = self.actilist.image_hlarge;
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
